module.exports = function(lab) {
    return {
        "导入经销商信息" : function() {

            return @.async(function(){
                lab.slime.trader.@importTrader(@.uuid(),{
                    number : "692321321321321",
                    name : "test",
                    area : "ss",
                    address : "sss",
                    contact : "A",
                    phone : "0515",
                    account : "ssss",
                    password : "155s"
                }).pipe(this);
            })
        },

        "搜索经销商信息" : function() {

            return @.async(function() {

                lab.slime.trader.searchTraders({
                    currentOU : {
                        id : "24798a42-35ab-4651-9edc-18c283e10750"
                    }
                }, {
                    area: "ss"
                }).pipe(this)
            })
         },

        "获取经销商信息" : function() {

            return @.async(function() {

                lab.slime.trader.getTrader({
                    currentOU : {
                        id : "941ecc7d-9d76-4c78-9c4d-0934c74e4657"
                    }
                },"5e590de0-5e75-4e74-a64b-21ca1195517e").pipe(this)
            })
         },

        "更新经销商信息" : function() {

            return @.async(function() {
                lab.slime.trader.updateTrader({
                    currentOU : {
                        id : "24798a42-35ab-4651-9edc-18c283e10750"
                    }
                }, {
                    id   : "6269d56d-eb7a-46e6-b309-6397ebd71a49",
                    number : "692321321321321",
                    name : "test",
                    area : "ss",
                    address : "sss",
                    contact : "Afd",
                    phone : "05153",
                    account : "ssss",
                    password : "155s"
                }).pipe(this)
            })
        },

        "删除经销商信息" : function() {

            return @.async(function() {

                lab.slime.trader.deleteTrader({
                    currentOU : {
                        id : "941ecc7d-9d76-4c78-9c4d-0934c74e4657"
                    }
                },"5e590de0-5e75-4e74-a64b-21ca1195517e").pipe(this)
            })
        },

        "绑定经销商" : function() {

            return @.async(function() {

                lab.slime.trader.@bindTrader("941ecc7d-9d76-4c78-9c4d-0934c74e4657","5e590de0-5e75-4e74-a64b-21ca1195517e").pipe(this)
            })
        },

        "搜索上级经销商信息" : function() {

            return @.async(function() {
                lab.slime.trader.searchParentTraders({
                    currentOU: {
                        id: "ec88d05e-9e21-4a48-b078-87250bd54608"
                    }
                },{
                    keyword: "692321321321321"
                }).pipe(this)
            })
        }
    }
}